package com.aaa.controller;

import com.aaa.service.impl.MailServiceImpl;
import com.aaa.util.MailUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MailController {

    @Resource
    private MailServiceImpl mailService;

    @RequestMapping("/sendMail")
    public void sendMail(String lemail) throws Exception {
      mailService.sendMail(lemail);
    }
}
